﻿using System;
using System.Data;
using org.se.fs.presenter.Library;

namespace org.se.fs.presenter.ITask.Template
{
    public interface ICrud
    {
        event FormEvent.FormEventHandler OnFetch;
        event FormEvent.FormEventHandler OnFetchLists;
        event FormEvent.FormEventHandler OnInsert;
        event FormEvent.FormEventHandler OnUpdate;
        event FormEvent.FormEventHandler OnDelete;
        event FormEvent.FormEventHandler OnToggle;
        event FormEvent.FormEventHandler OnGetCount;
        void Fetch(UInt64 id);
        void FetchLists();
        void FetchLists(object data);
        void Insert(DataTable data);
        void Update(DataTable data);
        void Delete(DataTable data);
        void Toggle(UInt64 id, bool active);
        void GetCount();
    }
}